package com.ai.bitcoin.jpa.dao;

import com.ai.bitcoin.jpa.entity.BitCoinAd;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface BitCoinAdDao extends JpaRepository<BitCoinAd, String> {

    @Query(value = "select * from bitcoin_ad where status = 1 order by order_no asc", nativeQuery = true)
    List<BitCoinAd> query();

}
